home *** CD-ROM | disk | FTP | other *** search
- /***************************************
- $Header: /home/amb/cxref/RCS/parse-yy.h 1.7 1996/02/24 14:53:31 amb Exp $
-
- C Cross Referencing & Documentation tool. Version 1.0
-
- The function protypes that are missing from the lex and yacc output.
- ******************/ /******************
- Written by Andrew M. Bishop
-
- This file Copyright 1995,96 Andrew M. Bishop
- It may be distributed under the GNU Public License, version 2, or
- any higher version. See section COPYING of the GNU Public license
- for conditions under which this file may be redistributed.
- ***************************************/
-
- #ifndef PARSE_YY_H
- #define PARSE_YY_H /*+ To stop multiple inclusions. +*/
-
- #include <stdio.h>
- #include <stdlib.h>
-
- /*+ Semantic type is a char* +*/
- #define YYSTYPE char*
-
- /*+ use prototypes in function declarations +*/
- #define YY_USE_PROTOS
-
- /*+ the "const" storage-class-modifier is valid +*/
- #define YY_USE_CONST
-
- /*+ Debugging output or not +*/
- #define YYDEBUG 1
-
- #if YYDEBUG
-
- /*+ Turn the debugging output on and off. +*/
- extern int yydebug;
-
- /*+ Define verbose errors in Bison generated file +*/
- #define YYERROR_VERBOSE 1
-
- /*+ This is needed in the Bison generated code. +*/
- #define xmalloc malloc
-
- /*+ Print the semantic value +*/
- #define YYPRINT(file,type,value) printf(" '%s'",value)
-
- #endif
-
- /* Extern variables */
-
- /*+ For communication between the lex and yacc code. +*/
- extern YYSTYPE yylval;
-
- /*+ For communication between the lex and yacc code. +*/
- extern FILE *yyin;
-
- /* Global functions */
-
- int yylex(void);
-
- int yyparse(void);
- void yyrestart (FILE *input_file);
-
- /* yywrap() function */
-
- #ifndef yywrap
-
- /*+ Needed in lex but does nothing. +*/
- #define yywrap() 1
-
- #endif
-
- #endif
-